Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add drop_index #3382

Merged
merged 2 commits into from
Jan 15, 2025
Merged

feat: add drop_index #3382

merged 2 commits into from
Jan 15, 2025

Conversation

westonpace
Copy link
Contributor

Helpful for when an index is created by mistake or no longer needed.

@github-actions github-actions bot added enhancement New feature or request python labels Jan 14, 2025
@@ -2222,6 +2222,16 @@ def create_index(
)
return self

def drop_index(self, column: str, name: str):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is column required? or solely name is enough?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I didn't realize index names were unique but after some testing it appears this is the case. So the name should be all we need 🎉

I'll fix the PR.

@codecov-commenter
Copy link

codecov-commenter commented Jan 14, 2025

Codecov Report

Attention: Patch coverage is 97.87234% with 2 lines in your changes missing coverage. Please review.

Project coverage is 78.46%. Comparing base (4d77d7b) to head (0ef9b92).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
rust/lance/src/index.rs 97.87% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3382      +/-   ##
==========================================
- Coverage   78.47%   78.46%   -0.01%     
==========================================
  Files         250      250              
  Lines       90243    90433     +190     
  Branches    90243    90433     +190     
==========================================
+ Hits        70817    70960     +143     
- Misses      16521    16557      +36     
- Partials     2905     2916      +11     
Flag Coverage Δ
unittests 78.46% <97.87%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@wjones127 wjones127 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@westonpace westonpace merged commit 8b8b8c8 into lancedb:main Jan 15, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants